<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateItemsTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('item_list', function (Blueprint $table) {
            $table->integer('item_no')->comment('道具编号');
            $table->string('name', 50)->comment('道具名称');
            $table->integer('pile_number')->comment('堆叠数量');
            $table->integer('price')->comment('价格');
            $table->primary(['item_no', 'name']);
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('items');
    }
}
